<?php
namespace Admin\Model;
use Think\Model;
class UserModel extends Model{
    protected $_validate=array(
        array('name','require','用户名不能为空'),
        array('pwd','require','密码不能为空'),
        array('cinema','require','影院名不能为空'),
        array('address','require','地址不能为空')
    );
    public function getAll($condition,$limit){
        $list=$this->where($condition)->limit($limit)->select();
        return $list;
    }

    public function setAll($data){
        $list=$this->add($data);
        return $list;
    }
}



?>